package usts.cs2020.classreportsystem.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import usts.cs2020.classreportsystem.domain.User;
import usts.cs2020.classreportsystem.mapper.UserMapper;
import usts.cs2020.classreportsystem.service.UserService;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User login(String act, String pwd) {
        User login = userMapper.login(act, pwd);
        return login;
    }
}
